home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMDocumentXBL.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  150 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMDocumentXBL.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMDocumentXBL_h__
  6. #define __gen_nsIDOMDocumentXBL_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMDocumentXBL */
  19. #define NS_IDOMDOCUMENTXBL_IID_STR "c7c0ae9b-a0ba-4f4e-9f2c-c18deb62ee8b"
  20.  
  21. #define NS_IDOMDOCUMENTXBL_IID \
  22.   {0xc7c0ae9b, 0xa0ba, 0x4f4e, \
  23.     { 0x9f, 0x2c, 0xc1, 0x8d, 0xeb, 0x62, 0xee, 0x8b }}
  24.  
  25. class NS_NO_VTABLE nsIDOMDocumentXBL : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTXBL_IID)
  29.  
  30.   /* nsIDOMNodeList getAnonymousNodes (in nsIDOMElement elt); */
  31.   NS_IMETHOD GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval) = 0;
  32.  
  33.   /* nsIDOMElement getAnonymousElementByAttribute (in nsIDOMElement elt, in DOMString attrName, in DOMString attrValue); */
  34.   NS_IMETHOD GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString & attrName, const nsAString & attrValue, nsIDOMElement **_retval) = 0;
  35.  
  36.   /* void addBinding (in nsIDOMElement elt, in DOMString bindingURL); */
  37.   NS_IMETHOD AddBinding(nsIDOMElement *elt, const nsAString & bindingURL) = 0;
  38.  
  39.   /* void removeBinding (in nsIDOMElement elt, in DOMString bindingURL); */
  40.   NS_IMETHOD RemoveBinding(nsIDOMElement *elt, const nsAString & bindingURL) = 0;
  41.  
  42.   /* nsIDOMElement getBindingParent (in nsIDOMNode node); */
  43.   NS_IMETHOD GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval) = 0;
  44.  
  45.   /* nsIDOMDocument loadBindingDocument (in DOMString documentURL); */
  46.   NS_IMETHOD LoadBindingDocument(const nsAString & documentURL, nsIDOMDocument **_retval) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMDOCUMENTXBL \
  52.   NS_IMETHOD GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval); \
  53.   NS_IMETHOD GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString & attrName, const nsAString & attrValue, nsIDOMElement **_retval); \
  54.   NS_IMETHOD AddBinding(nsIDOMElement *elt, const nsAString & bindingURL); \
  55.   NS_IMETHOD RemoveBinding(nsIDOMElement *elt, const nsAString & bindingURL); \
  56.   NS_IMETHOD GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval); \
  57.   NS_IMETHOD LoadBindingDocument(const nsAString & documentURL, nsIDOMDocument **_retval); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIDOMDOCUMENTXBL(_to) \
  61.   NS_IMETHOD GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval) { return _to GetAnonymousNodes(elt, _retval); } \
  62.   NS_IMETHOD GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString & attrName, const nsAString & attrValue, nsIDOMElement **_retval) { return _to GetAnonymousElementByAttribute(elt, attrName, attrValue, _retval); } \
  63.   NS_IMETHOD AddBinding(nsIDOMElement *elt, const nsAString & bindingURL) { return _to AddBinding(elt, bindingURL); } \
  64.   NS_IMETHOD RemoveBinding(nsIDOMElement *elt, const nsAString & bindingURL) { return _to RemoveBinding(elt, bindingURL); } \
  65.   NS_IMETHOD GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval) { return _to GetBindingParent(node, _retval); } \
  66.   NS_IMETHOD LoadBindingDocument(const nsAString & documentURL, nsIDOMDocument **_retval) { return _to LoadBindingDocument(documentURL, _retval); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIDOMDOCUMENTXBL(_to) \
  70.   NS_IMETHOD GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnonymousNodes(elt, _retval); } \
  71.   NS_IMETHOD GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString & attrName, const nsAString & attrValue, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnonymousElementByAttribute(elt, attrName, attrValue, _retval); } \
  72.   NS_IMETHOD AddBinding(nsIDOMElement *elt, const nsAString & bindingURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBinding(elt, bindingURL); } \
  73.   NS_IMETHOD RemoveBinding(nsIDOMElement *elt, const nsAString & bindingURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveBinding(elt, bindingURL); } \
  74.   NS_IMETHOD GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBindingParent(node, _retval); } \
  75.   NS_IMETHOD LoadBindingDocument(const nsAString & documentURL, nsIDOMDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadBindingDocument(documentURL, _retval); } 
  76.  
  77. #if 0
  78. /* Use the code below as a template for the implementation class for this interface. */
  79.  
  80. /* Header file */
  81. class nsDOMDocumentXBL : public nsIDOMDocumentXBL
  82. {
  83. public:
  84.   NS_DECL_ISUPPORTS
  85.   NS_DECL_NSIDOMDOCUMENTXBL
  86.  
  87.   nsDOMDocumentXBL();
  88.  
  89. private:
  90.   ~nsDOMDocumentXBL();
  91.  
  92. protected:
  93.   /* additional members */
  94. };
  95.  
  96. /* Implementation file */
  97. NS_IMPL_ISUPPORTS1(nsDOMDocumentXBL, nsIDOMDocumentXBL)
  98.  
  99. nsDOMDocumentXBL::nsDOMDocumentXBL()
  100. {
  101.   /* member initializers and constructor code */
  102. }
  103.  
  104. nsDOMDocumentXBL::~nsDOMDocumentXBL()
  105. {
  106.   /* destructor code */
  107. }
  108.  
  109. /* nsIDOMNodeList getAnonymousNodes (in nsIDOMElement elt); */
  110. NS_IMETHODIMP nsDOMDocumentXBL::GetAnonymousNodes(nsIDOMElement *elt, nsIDOMNodeList **_retval)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* nsIDOMElement getAnonymousElementByAttribute (in nsIDOMElement elt, in DOMString attrName, in DOMString attrValue); */
  116. NS_IMETHODIMP nsDOMDocumentXBL::GetAnonymousElementByAttribute(nsIDOMElement *elt, const nsAString & attrName, const nsAString & attrValue, nsIDOMElement **_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* void addBinding (in nsIDOMElement elt, in DOMString bindingURL); */
  122. NS_IMETHODIMP nsDOMDocumentXBL::AddBinding(nsIDOMElement *elt, const nsAString & bindingURL)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* void removeBinding (in nsIDOMElement elt, in DOMString bindingURL); */
  128. NS_IMETHODIMP nsDOMDocumentXBL::RemoveBinding(nsIDOMElement *elt, const nsAString & bindingURL)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* nsIDOMElement getBindingParent (in nsIDOMNode node); */
  134. NS_IMETHODIMP nsDOMDocumentXBL::GetBindingParent(nsIDOMNode *node, nsIDOMElement **_retval)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* nsIDOMDocument loadBindingDocument (in DOMString documentURL); */
  140. NS_IMETHODIMP nsDOMDocumentXBL::LoadBindingDocument(const nsAString & documentURL, nsIDOMDocument **_retval)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* End of implementation class template. */
  146. #endif
  147.  
  148.  
  149. #endif /* __gen_nsIDOMDocumentXBL_h__ */
  150.